﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Chenxin.Lib.Hr.BLL
{
    class AnnnualVacList
    {
        public DataSet getListByCoditions(System.Collections.Hashtable hsParams)
        {
            ////select文
            //string strSelect;
            ////order文
            //string strOrder = "";
            ////当前页数
            //int intCurPage = 1;
            ////显示行数
            //int intRowCnt = 10;
            ////where文
            //string strWhere = " 1=1 ";

            ////工号
            //if (hsParams.ContainsKey("UserId"))
            //{
            //    strWhere = strWhere + " And UserId = '" + hsParams["UserId"].ToString() + "' ";
            //}
            ////职务
            //if (hsParams.ContainsKey("DepartId"))
            //{
            //    strWhere = strWhere + " And DepartId = '" + hsParams["DepartId"].ToString() + "' ";
            //}

            ////排序项目
            //if (hsParams.ContainsKey("sidx"))
            //{
            //    strOrder = strOrder + hsParams["sidx"].ToString();
            //}
            ////排序方式
            //if (hsParams.ContainsKey("sord"))
            //{
            //    strOrder = strOrder + " " + hsParams["sord"].ToString();
            //}

            ////当前页数
            //if (hsParams.ContainsKey("page"))
            //{
            //    intCurPage = Convert.ToInt32(hsParams["page"]);
            //}
            ////显示行数
            //if (hsParams.ContainsKey("rows"))
            //{
            //    intRowCnt = Convert.ToInt32(hsParams["rows"]);
            //}

            //strSelect = " RecordId,UserId,UserName,DepartId,DeaprtName,DateTime,StartTime,EndTime,Days,VacationType,Reason ";

            //string TableFieldList = "RecordId,UserId,UserName,DepartId,DeaprtName,DateTime,StartTime,EndTime,Days,VacationType,Reason";

            ////开始范围
            //int intSelStart;
            ////结束范围
            //int intSelEnd;

            //intSelStart = (intCurPage - 1) * intRowCnt + 1;
            //intSelEnd = intCurPage * intRowCnt;
            //DataSet ds = Chenxin.Lib.Hr.DAL.Hr_VacationRecord.GetList(strSelect, TableFieldList, strWhere, strOrder, intCurPage, intRowCnt, true);


            //return ds;
            return null;
        }
    }
}
